export function getStorage(key: string) {
    const data = localStorage.getItem(key)
    return data ? JSON.parse(data as string) : null
}

export function setStorage(key: string, value: any) {
    return localStorage.setItem(key, JSON.stringify(value))
}